import Vue from 'vue'
import App from './App'
import { request } from './axios/request';
import { getCurPage, api } from './util/api';
import uView from 'uview-ui'
Vue.use(uView);
Vue.config.productionTip = false;
Vue.prototype.$axios = request;
Vue.prototype.$api = api;
Vue.prototype.routeOption = getCurPage
Vue.prototype.but_height = function () {
	const mobileInfo = uni.getSystemInfoSync();
	let iphoneXArr = ["iPhone X", "iPhone 11", "iPhone 11 Pro Max"];
	var BottomBlackLineHeight = 120;
	iphoneXArr.forEach(function (item) {
		if (mobileInfo.model.search(item) !== -1) {
			BottomBlackLineHeight = 150;
		}
	});
	return BottomBlackLineHeight + "rpx";
}
    // Vue.prototype.urlimg = 'https://api.dhjms.com/'
  
 
   //Vue.prototype.urlimg = 'http://localhost:51073/'
   //Vue.prototype.urlimg = 'http://127.0.0.82/'
	     Vue.prototype.urlimg = 'https://api.dlbcms.com/'
  
App.mpType = 'app';
const app = new Vue({
	...App
})
app.$mount()